export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', component: './User/Login' },
      { path: '/user/register', component: './User/Register' },
      { path: '/user/register-result', component: './User/RegisterResult' },
    ],
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    // Routes: ['src/pages/Authorized'],
    // authority: ['admin', 'user'],
    routes: [
      // index
      { path: '/', redirect: '/user' },

      // 首页
      {
        path: '/home',
        name: 'home',
        component: './Home/Home',
      },

      // 预警
      {
        path: '/Warning',
        name: 'warning',
        component: './Warning/Warning',

        routes: [
          { path: '/Warning', redirect: '/Warning/creditRisk' },
          {
            path: '/Warning/creditRisk',
            component: './Warning/creditRisk',
          },
          {
            path: '/Warning/opWarning',
            name: 'opWarning',
            component: './Warning/opWarning',
            routes: [
              { path: '/opWarning', redirect: '/opWarning/bScore' },
              {
                path: '/Warning/opWarning/bScore',
                component: './Warning/ExoticIndex/bScore',
              },
              {
                path: '/Warning/opWarning/mScore',
                component: './Warning/ExoticIndex/mScore',
              },
              {
                path: '/Warning/opWarning/altmanZ',
                component: './Warning/ExoticIndex/altmanZ',
              },
            ],
          },
          {
            path: '/Warning/marketRisk',
            component: './Warning/marketRisk',
          },
          {
            path: '/Warning/opinionRisk',
            component: './Warning/opinionRisk',
          },
        ],
      },

      // 评价
      {
        path: '/Evaluate',
        // icon: 'form',
        name: 'evaluate',
        routes: [
          { path: '/Evaluate', redirect: '/Evaluate/Compliance' },
          {
            path: '/Evaluate/FinancialAnalysis',
            name: 'financialAnalysis',
            component: './FinancialAnalysis/FinancialAnalysis',
          },
          // 经营绩效
          {
            path: '/Evaluate/BusinessPerformance',
            name: 'businessPerformance',
            component: './BusinessPerformance/BusinessPerformance',
          },
          //市场波动
          {
            path: '/Evaluate/MarketFluctuation',
            name: 'MarketFluctuation',
            component: './MarketFluctuation/MarketFluctuation',
          },
          // 信披合规
          {
            path: '/Evaluate/Compliance',
            name: 'compliance',
            component: './Compliance/Compliance',
          },
        ],
      },

      // 报告
      {
        path: '/Report',
        // icon: 'table',
        name: 'report',
        routes: [
          { path: '/Report', redirect: '/Report/Report' },
          {
            path: '/Report/Report',
            name: 'Report',
            component: './Report/Report',
          },
        ],
      },

      // 服务
      {
        path: '/Service',
        name: 'service',
        // icon: 'profile',
        routes: [
          { path: '/Service', redirect: '/Service/Service' },
          {
            path: '/Service/Service',
            name: 'Service',
            component: './Service/Service',
          },
        ],
      },

      // 法规
      {
        path: '/Law',
        name: 'law',
        // icon: 'warning',
        routes: [
          // exception
          { path: '/Law', redirect: '/Law/ListContent' },
          {
            path: '/Law/ListContent',
            name: 'lawNews',
            hideInMenu: true,
            component: './Law/ListContent',
          },
          {
            path: '/Law/NoticeTable',
            name: 'lawNoticeTable',
            hideInMenu: true,
            component: './Law/NoticeTable',
          },
          {
            path: '/Law/SearchCollection',
            name: 'searchCollection',
            hideInMenu: true,
            component: './Law/SearchCollection',
            routes: [
              { path: '/SearchCollection', redirect: '/SearchCollection/regulatoryLetters' },
              {
                path: '/Law/SearchCollection/regulatoryLetters',
                component: './Law/childPages/regulatoryLetters',
              },
              {
                path: '/Law/SearchCollection/feedBack',
                component: './Law/childPages/feedBack',
              },
              {
                path: '/Law/SearchCollection/lawsRegulations',
                component: './Law/childPages/lawsRegulations',
              },
              {
                path: '/Law/SearchCollection/violationCases',
                component: './Law/childPages/violationCases',
              },
            ],
          },
        ],
      },

      // 财富头条
      {
        path: '/Headlines',
        name: 'headlines',
        // icon: 'warning',
        routes: [
          // exception
          { path: '/Headlines', redirect: '/Headlines/ListContent' },
          {
            path: '/Headlines/ListContent',
            name: 'listContent',
            hideInMenu: true,
            component: './Headlines/ListContent',
          },
          {
            path: '/Headlines/MoreVideos',
            name: 'MoreVideos',
            hideInMenu: true,
            component: './Headlines/MoreVideos',
          },
          {
            path: '/Headlines/NewsDetailList',
            name: 'NewsDetailList',
            hideInMenu: true,
            component: './Headlines/NewsDetailList',
          },
          {
            path: '/Headlines/ReportsDetailList',
            name: 'ReportsDetailList',
            hideInMenu: true,
            component: './Headlines/ReportsDetailList',
          },
          {
            path: '/Headlines/ZzdDetailList',
            name: 'ZzdDetailList',
            hideInMenu: true,
            component: './Headlines/ZzdDetailList',
          },
        ],
      },

      {
        path: '/favorite',
        name: 'favorite',
        component: './Favorite/ListContent',
        hideInMenu: true,
      },

      // 工具
      {
        path: '/Tools',
        name: 'tools',
        // icon: 'user',
        routes: [
          { path: '/Tools', redirect: '/Tools/MarketAnalysis' },
          {
            path: '/Tools/MarketAnalysis',
            name: 'MarketAnalysis',
            component: './Tools/MarketAnalysis',
          },
          {
            path: '/Tools/EInteraction',
            name: 'EInteraction',
            component: './Tools/EInteraction',
          },
          {
            path: '/Tools/WebsiteList',
            name: 'WebsiteList',
            component: './Tools/WebsiteList',
          },
        ],
      },

      {
        path: '/SensitivePeriod',
        name: 'SensitivePeriod',
        component: './SensitivePeriod/SensitivePeriodList',
        hideInMenu: true,
      },
      // 公司基本信息
      {
        path: '/CompanyBasicInfo',
        name: 'CompanyBasicInfo',
        component: './Company/CompanyBasicInfo',
        hideInMenu: true,
      },
      // 我的设置
      {
        path: '/MySettings',
        name: 'MySettings',
        component: './MySettings/MySettings',
        hideInMenu: true,
      },
      {
        path: '/LeaderServing',
        name: 'LeaderServing',
        component: './LeaderServing/LeaderServing',
        hideInMenu: true,
      },

      //主营产品
      {
        path: '/MainProductsList',
        name: 'MainProduct',
        component: './MainProduct/MainProduct',
        hideInMenu: true,
      },
      // 系统管理
      {
        path: '/SystemManagement',
        name: 'SystemManagement',
        component: './SystemManagement/SmtpList',
        hideInMenu: true,
      },

      // 订单管理
      {
        path: '/OrderList',
        name: 'OrderList',
        component: './OrderList/OrderList',
        hideInMenu: true,
      },
      // 关联公司设置
      {
        path: '/RelatedCompany',
        name: 'RelatedCompany',
        component: './RelatedCompany/RelatedCompany',
        hideInMenu: true,
      },
      // 竞争对手设置
      {
        path: '/Competior',
        name: 'Competior',
        component: './CompetiorPage/Competior',
        hideInMenu: true,
      },
      //消息列表
      {
        path: '/Message',
        name: 'Message',
        component: './Message/Message',
        hideInMenu: true,
      },
      {
        component: '404',
      },
    ],
  },
];
